redis = Redis.new(:host => 'localhost', :port => 6379, :db => 0)
$redis = Redis::Namespace.new(:rails_demo, :redis=> redis)